package day02;

public class Demos04 {
    public static void main(String[] args) {
        String txt = "56.jpg";
        boolean b = txt.matches(".+\\.jpg");
        System.out.println(b);
    }
}
